import Main from '@/layout/Main.vue'

export default [{
    path: '/emsModule',
    name: 'emsModule',
    meta: {
        title: '机构管理'
    },
    component: Main,
    children: [{
            // 公司列表
            path: '/organization-company',
            name: 'organization-company',
            meta: {
                title: '公司列表'
            },
            component: () => import('@/views/EMSModule/OrganizationCompany')
        },
        {
            // 门店列表
            path: '/organization-shop',
            name: 'organization-shop',
            meta: {
                title: '门店列表'
            },
            component: () => import('@/views/EMSModule/OrganizationShop')
        },
        {
            // 门店用户列表
            path: '/organization-user/:id/:comId',
            name: 'organization-user',
            meta: {
                title: '用户'
            },
            component: () =>
                import('@/views/EMSModule/OrganizationShop/organization_user')
        },
        {
            // 门店部门列表
            path: '/organization-department/:id',
            name: 'organization-department',
            meta: {
                title: '部门'
            },
            component: () =>
                import('@/views/EMSModule/OrganizationShop/organization_department')
        },
        {
            // 供应商列表
            path: '/organization-supplier',
            name: 'organization-supplier',
            meta: {
                title: '供应商列表'
            },
            component: () =>
                import('@/views/EMSModule/OrganizationSupplier')
        },
        {
            // 品牌列表
            path: '/products-service',
            name: 'products-service',
            meta: {
                title: '上门服务'
            },
            component: () => import('@/views/EMSModule/ProductsBrand')
        },
        {
            // 体检服务
            path: '/Health-checkup',
            name: 'Health-checkup',
            meta: {
                title: '体检服务'
            },
            component: () => import('@/views/EMSModule/healthCheckup')
        },
        {
            // 会员列表
            path: '/users-list',
            name: 'users-list',
            meta: {
                title: '会员列表'
            },
            component: () => import('@/views/EMSModule/UsersList')
        },
        {
            // 会员列表
            path: '/users-task',
            name: 'users-task',
            meta: {
                title: '会员任务'
            },
            component: () => import('@/views/EMSModule/UsersTask')
        },
        {
            path: '/users-nurse',
            name: 'users-nurse',
            meta: {
                title: '网约护士'
            },
            component: () => import('@/views/EMSModule/UsersNurse')
        },
        {
            path: '/users-nurse-detail/:id',
            name: 'users-nurse-detail',
            meta: {
                title: '网约护士'
            },
            component: () => import('@/views/EMSModule/UsersNurse/detail')
        },
        {
            // 商品列表
            path: '/products-list',
            name: 'products-list',
            meta: {
                title: '商品列表'
            },
            component: () => import('@/views/EMSModule/ProductsList')
        },
        {
            // 商品分类
            path: '/products-cagetory',
            name: 'products-cagetory',
            meta: {
                title: '商品分类'
            },
            component: () => import('@/views/EMSModule/ProductsCagetory')
        },
        {
            // 商品新建编辑
            path: '/products-list-jump/:id',
            name: 'products-list-jump',
            component: () =>
                import('@/views/EMSModule/ProductsList/ProductListJump')
        },
        {
            // 商品规格
            path: '/product-list-norm/:id/:name/:code',
            name: 'product-list-norm',
            component: () =>
                import('@/views/EMSModule/ProductsList/ProductListNorm')
        },
        {
            // 采购单列表
            path: '/purchase-list',
            name: 'purchase-list',
            meta: {
                title: '采购单列表'
            },
            component: () => import('@/views/EMSModule/PurchaseList')
        },
        {
            // 信息发布
            path: '/website-news',
            name: 'website-news',
            meta: {
                title: '软文资讯'
            },
            component: () => import('@/views/EMSModule/WebsiteInfo')
        },
        {
            // 软文资讯
            path: '/website-info',
            name: 'website-info',
            meta: {
                title: '信息发布'
            },
            component: () => import('@/views/EMSModule/websiteNews')
        },
        {
            // 软文资讯
            path: '/website-nestype',
            name: 'website-nestype',
            meta: {
                title: '软文分类'
            },
            component: () => import('@/views/EMSModule/websiteNestype')
        },
        {
            // 采购单明细
            path: '/purchase-list-detail/:id/:code/:type',
            name: 'purchase-list-detail',
            component: () =>
                import('@/views/EMSModule/PurchaseList/PurchaseListDetail')
        },
        {
            // 我的审批
            path: '/flow-wait',
            name: 'flow-wait',
            meta: {
                title: '我的审批'
            },
            component: () => import('@/views/EMSModule/FlowWait')
        },
        {
            // 我的申请
            path: '/flow-apply',
            name: 'flow-apply',
            meta: {
                title: '我的申请'
            },
            component: () => import('@/views/EMSModule/FlowApply')
        },
        {
            // 审批列表
            path: '/flow-history',
            name: 'flow-history',
            meta: {
                title: '审批列表'
            },
            component: () => import('@/views/EMSModule/FlowHistory')
        },
        {
            // 配送单列表
            path: '/purchase-delivery',
            name: 'purchase-delivery',
            meta: {
                title: '配送单'
            },
            component: () => import('@/views/EMSModule/PurchaseDelivery')
        },
        {
            // 采购入库
            path: '/purchase-instore',
            name: 'purchase-instore',
            meta: {
                title: '采购入库'
            },
            component: () => import('@/views/EMSModule/PurchaseInstore')
        },
        {
            // 进货批次
            path: '/purchase-batch',
            name: 'purchase-batch',
            meta: {
                title: '进货批次'
            },
            component: () => import('@/views/EMSModule/PurchaseBatch')
        },
        {
            //限时促销
            path: '/marketing-products',
            name: 'marketing-products',
            meta: {
                title: '限时促销'
            },
            component: () => import('@/views/EMSModule/MarketingProducts')
        },
        {
            //中医预约
            path: '/chinese-medicine',
            name: 'chinese-medicine',
            meta: {
                title: '中医预约'
            },
            component: () => import('@/views/EMSModule/ChineseMedicine')
        },
        {
            //添加限时促销商品
            //限时促销
            path: '/marketingProducts-add/:id',
            name: 'marketingProducts-add',
            meta: {
                title: '添加商品'
            },
            component: () =>
                import('@/views/EMSModule/MarketingProducts/MarketingProductsAdd')
        },
        {
            //订单活动
            path: '/marketing-orders',
            name: 'marketing-orders',
            meta: {
                title: '订单活动'
            },
            component: () => import('@/views/EMSModule/MarketingOrders')
        },
        {
            //订单活动添加商品
            path: '/marketing-add',
            name: 'marketing-add',
            meta: {
                title: '赠送商品'
            },
            component: () =>
                import('@/views/EMSModule/MarketingOrders/AddProduct')
        },
        {
            //红包活动
            path: '/marketing-redcard',
            name: 'marketing-redcard',
            meta: {
                title: '红包活动'
            },
            component: () => import('@/views/EMSModule/MarketingRedcard')
        },
        {
            //门店入库清单
            path: '/finance-inboundpro',
            name: 'finance-inboundpro',
            meta: {
                title: '门店入库清单'
            },
            component: () =>
                import('@/views/EMSModule/FinanceInboundpro/index.vue')
        },
        {
            // 门店入库明细
            path: '/finance-inboundpro-detail/:id/:code/:type',
            name: 'finance-inboundpro-detail',
            component: () =>
                import('@/views/EMSModule/FinanceInboundpro/financeInboundproDetail')
        },
        {
            //陪诊订单
            path: '/pz-order',
            name: 'pz-order',
            meta: {
                title: '陪诊订单'
            },
            component: () => import('@/views/EMSModule/pzOrder')
        },
        {
            //新陪诊订单
            path: '/pz-newOrder',
            name: 'pz-newOrder',
            meta: {
                title: '陪诊订单'
            },
            component: () => import('@/views/EMSModule/pzNewOrder')
        }, {
            //专家预约
            path: '/ProDoctor',
            name: 'ProDoctor',
            meta: {
                title: '专家预约'
            },
            component: () => import('@/views/EMSModule/ProDoctor')
        },
        {
            path: '/orders-servier',
            name: 'orders-servier',
            meta: {
                title: '服务订单'
            },
            component: () => import('@/views/EMSModule/ordersServier')
        },
        {
            path: '/orders-servier-details/:id',
            name: 'orders-servier-details',
            meta: {
                title: '服务详情'
            },
            component: () =>
                import('@/views/EMSModule/ordersServier/details')
        },
        {
            //药品审核
            path: '/products-increase',
            name: 'products-increase',
            meta: {
                title: '药品审核'
            },
            component: () => import('@/views/EMSModule/productsIncrease')
        },
        {
            // 药品审核校验页
            path: '/products-increase-check/:id',
            name: 'products-increase-check',
            component: () =>
                import('@/views/EMSModule/productsIncrease/productListCheck')
        },
        {
            //门店销售统计
            path: '/shop-sale-statistics',
            name: 'shop-sale-statistics',
            meta: {
                title: '门店销售统计'
            },
            component: () =>
                import('@/views/EMSModule/shop-sale-statistics')
        },
        {
            // 月度出入库统计
            path: '/FinanceInOut',
            name: 'FinanceInOut',
            meta: {
                title: '月度出入库统计'
            },
            component: () =>
                import('@/views/EMSModule/FinancialInout')
        },
        {
            // 月度库存统计
            path: '/FinancialReport',
            name: 'FinancialReport',
            meta: {
                title: '月度库存统计'
            },
            component: () =>
                import('@/views/EMSModule/FinancialReport')
        },
        {
            //今日库存统计
            path: '/today-inboundorder',
            name: 'today-inboundorder',
            meta: {
                title: '今日库存统计'
            },
            component: () => import('@/views/EMSModule/today-inboundorder')
        }
    ]
}]